package com.northone.statistics.adapter;

import java.util.List;

import com.northone.statistics.fragment.WeekFragment;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class WeekPageAdapter extends FragmentPagerAdapter {

	private List<WeekFragment> datas;
	
	public WeekPageAdapter(FragmentManager fm, List<WeekFragment> datas) {
		super(fm);
		this.datas = datas;
	}
	
	@Override
	public Fragment getItem(int position) {
		return datas.get(position);
	}
	@Override
	public int getCount() {
		return datas.size();
	}

}
